import java.util.Scanner;
public class Chihuolianmeng {
    public static void main(String[] args) {

        Scanner input = new Scanner(System.in);

        while (true) {
            System.out.println("****************************");
            System.out.println("1、我要订餐\n" +
                    "2、查看餐袋\n" +
                    "3、签收订单\n" +
                    "4、删除订单\n" +
                    "5、我要点赞\n" +
                    "6、退出系统");
            System.out.println("****************************");
            System.out.println("请选择：");
            int no = Integer.parseInt(input.nextLine());
            switch (no) {
                case 1:
                    int k;
                    do {
                        System.out.println("***我要订餐***");
                        System.out.println("请输入订餐人姓名：");
                        String name = input.nextLine();
                        System.out.println("序号\t菜名\t单价\n" +
                                "1\t红烧带鱼\t38.0元\t\n" +
                                "2\t鱼香肉丝\t20.0元\t\n" +
                                "3\t时令鲜蔬\t10.0元\t");
                        System.out.println("请选择您要点的菜品编号:");
                        int cno = Integer.parseInt(input.nextLine());
                        System.out.println("请选择您需要的份数:");
                        int fen = Integer.parseInt(input.nextLine());
                        System.out.println("请输入送餐时间（送餐时间是10点至20点间整点送餐）:");
                        int shijian = Integer.parseInt(input.nextLine());
                        System.out.println("请输入送餐地址：");
                        String addr = input.nextLine();
                        System.out.println("订餐成功！");
                        System.out.println("您订的是：" + "红烧带鱼" + fen + "份");
                        System.out.println("送餐时间：" + shijian + "点");
                        System.out.println("餐费：" + "38.0" + "元，送餐费6.0元，总计：" + 44.0 + "元。");
                        System.out.println("输入0返回,输入1继续订餐：");
                        while (true) {
                            k = Integer.parseInt(input.nextLine());
                            if (k == 0 || k == 1) {
                                break;
                            } else {
                                System.out.println("输入非法");
                            }
                        }
                    } while (k == 1);
                    break;
                case 2:
                    break;
                case 3:
                    break;
                case 4:
                    break;
                case 5:
                    break;
                case 6:
                    System.out.println("谢谢惠顾");
                    System.exit(0);
                    break;
                default:
                    System.out.println("请输入合法编号");
            }

        }

    }
}
